package com.lu.widgets.demo;

import com.lu.widgets.R;
import com.lu.widgets.component.view.CheckedTextView;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class CheckedTextViewTest extends Activity {

	/** Called when the activity is first created. */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.checked_textview_demo);

		OnClickListener cl = new OnClickListener() {
			@Override
			public void onClick(View v) {
				((CheckedTextView) v).toggle();
			}
		};

		CheckedTextView checkedTextView1 = (CheckedTextView) findViewById(R.id.checkedTextView1);
		CheckedTextView checkedTextView2 = (CheckedTextView) findViewById(R.id.checkedTextView2);
		checkedTextView1.setOnClickListener(cl);
		checkedTextView2.setOnClickListener(cl);
	}
}
